package com.wzj.mybatisxml;

import com.wzj.mybatisxml.handler.UserMapperInvocationHandler;

import java.lang.reflect.Proxy;

/**
 * @Author: kingsWei
 */
public class SqlSession {

    public static <T> T getUserMapper(Class clazz, String path) {
        return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class[] { clazz },
                new UserMapperInvocationHandler(path));
    }

}
